<?php
	// Make sure _PATH_ is defined, otherwise when we pull in the config
	// file it will have no idea where to find our directories
	if (!defined("_PATH_")) {define("_PATH_",dirname(__FILE__));}
	// Config Files
	require_once(_PATH_."/config/config.php");
	// Constants Files
	require_once(_PATH_."/config/const.php");

	// System Class
	require_once(_CORE_CLASSES_."foxobject.class.php");
	require_once(_CORE_CLASSES_."version.class.php");
	require_once(_CORE_CLASSES_."core.class.php");
	require_once(_CORE_CLASSES_."dbi.class.php");
	require_once(_CORE_CLASSES_."html.class.php");
	require_once(_CORE_CLASSES_."elmts.class.php");
	require_once(_CORE_CLASSES_."xview.class.php");
	require_once(_CORE_CLASSES_."grid.class.php");
	require_once(_CORE_CLASSES_."popup.class.php");
	require_once(_CORE_CLASSES_."menus.class.php");
	require_once(_CORE_CLASSES_."User.class.php");
	require_once(_CORE_CLASSES_."sap.class.php");
	require_once(_CORE_CLASSES_."matm.class.php");
	//require_once(_CORE_CLASSES_."excel.class.php");
	require_once("PHPPDF/fpdf.php");
	// Custom Class

	// Core Functions
	require_once(_CORE_FUNCS_."time.func.core.php");
	require_once(_CORE_FUNCS_."sql.func.core.php");
	require_once(_CORE_FUNCS_."render.func.core.php");
	require_once(_CORE_FUNCS_."access.func.core.php");
	require_once(_CORE_FUNCS_."mesg.func.core.php");
	require_once(_CORE_FUNCS_."color.func.core.php");
	// Custom Functions

	// Javascript Includes Standard

	$t_javas[] = _CORE_JAVAS_."class.table.js";
	$t_javas[] = _CORE_JAVAS_."jquery-1.4.2.min.js";
	$t_javas[] = _CORE_JAVAS_."jquery-ui-1.8.6.custom.min.js";
	$t_javas[] = _CORE_JAVAS_."jquery-metadata.min.js";
	$t_javas[] = _CORE_JAVAS_."superTables.js";
	$t_javas[] = _CORE_JAVAS_."jquery-fox.js";
	// Jquery lib
	$t_javas[] = _CORE_JAVAS_."class.motion.js";
	$t_javas[] = _CORE_JAVAS_."class.drag.js";
	$t_javas[] = _CORE_JAVAS_."class.html.js";
	$t_javas[] = _CORE_JAVAS_."class.grid.js";
	$t_javas[] = _CORE_JAVAS_."class.site.js";
	$t_javas[] = _CORE_JAVAS_."msg-<langu>.js";
	$t_javas[] = _CORE_JAVAS_."class.help.js";
	$t_javas[] = _CORE_JAVAS_."init.js";
	$t_javas[] = _CORE_JAVAS_."calendar.js";
	$t_javas[] = _CORE_JAVAS_."calendar-<langu>.js";

	// Javascript Custom
	$t_javas[] = _INCLUDES_."/javascripts/google.analytics.js";

	// Style Css ?
	$t_thcss[] = _CORE_THEMES_."calendar.css";
	//$t_thcss[] = _CORE_THEMES_."style.css";
	$t_thcss[] = _CORE_THEMES_."style-menu.css";
	$t_thcss[] = _CORE_THEMES_."xv-grid.css";
	$t_thcss[] = _CORE_THEMES_."ext-all.css";
	$t_thcss[] = _CORE_THEMES_."xv-form.css";
	$t_thcss[] = _CORE_THEMES_."fox-grid.css";
	$t_thcss[] = _THEMES_."style.css";

	// Images
	//require_once(_CORE_THEMES_."images.php");
	// Setup Time Zone
	//date_default_timezone_set("America/New_York");
	// Set Time Limit 180 s
	set_time_limit(180);
	// Data Base For Commum Part
	$dbi = new DBI($basis_db);
	// ROE Data Base
	$mddbi = new DBI($mdata_db);
	// Global Language Object
	$lg = '';

?>